Repository navigation
Renovate から Dependabot へ移行し、CI を集約ワークフローにまとめる - #11
Merged
Merged
Conversation
krrrr38
force-pushed
the
migrate-renovate-to-dependabot
branch
from
August 30, 2026 22:08
7790c4e to
76aec21
Compare
- .github/renovate.json5 を削除し .github/dependabot.yml を追加
- 言語 (ディレクトリ) ごとに update を分け、PR も言語ごとに分離
- 各言語の minor/patch は groups で 1 言語 1 PR、major は個別 PR
- cooldown 3 日、週次 (月曜 04:00 JST)、既存ラベルを付与
- 言語本体の major は ignore (php, typescript, @types/node,
scala3-library, scala-library, sbt)
- .github/workflows/dependabot-auto-merge.yml を追加
- dependabot/fetch-metadata で判定し、major 以外を auto merge
- .github/workflows/ci.yml を追加し test-*.yml を workflow_call 化
- 変更のあった言語だけを呼び出し、all-checks で status を集約
- required status check には "All checks passed" のみを登録すればよい
- paths の漏れ (go.sum, package-lock.json, php/tests, python/tests) を修正
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0163pSJYyqmQcJhji7qc69Nm
Signed-off-by: krrrr38 <k.kaizu38@gmail.com>
krrrr38
force-pushed
the
migrate-renovate-to-dependabot
branch
from
August 30, 2026 22:09
76aec21 to
5a22c4b
Compare
This was referenced Aug 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
.github/renovate.json5をやめて.github/dependabot.ymlに移行する。あわせて auto merge のゲートとして機能させるため、各言語のテストを集約するci.ymlを追加する。Dependabot
updateを分けているので PR も言語ごとに分かれる (java8 / java17 も別々)groupsで 1 言語 1 PR にまとめ、major は個別 PRcooldown: default-days: 3(リリースから 3 日経過したもののみ対象)open-pull-requests-limit: 5、既存ラベル (dependencies+ 言語ラベル) を付与ignorephptypescript,@types/nodeorg.scala-lang:scala3-library_3,org.scala-lang:scala-library,org.scala-sbt:sbtsbt は 2026-08 に Dependabot が対応したため (dependabot/dependabot-core#352)、scala も対象に含めている。Dependabot は
build.sbtのscalaVersionをscala3-libraryとして、project/build.propertiesのsbt.versionをorg.scala-sbt:sbtとして依存に含めるため、いずれも major を ignore している。auto merge
dependabot-auto-merge.ymlを追加。dependabot/fetch-metadataで update-type を判定し、major 以外をgh pr merge --auto --squashする。major は人間がレビューする。CI の集約
auto merge を「テストが通ったものだけ」に限定するには required status check が必要だが、既存の
test-*.ymlはpathsフィルタ付きのため、そのまま required にすると起動しないチェックを待ち続けてしまう。そこで:test-*.yml8 本をon: workflow_callに変更 (ジョブ本体は無変更)ci.ymlがdorny/paths-filterで変更言語を検出し、該当する言語のみ呼び出すall-checksジョブがif: always()+ 全ジョブへのneedsで結果を集約し、success/skipped以外があれば失敗するrequired status check には
All checks passedのみを登録すればよい。あわせて、既存の
pathsに漏れていたgolang/go.sum/typescript/package-lock.json/php/tests/**/python/tests/**を追加した。lock ファイルだけを更新する Dependabot PR でテストが走らない状態だったため。マージ後に必要な設定
All checks passed確認
actionlint/ghalintともに pass